package com.hd.appcommon.entity.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hd.appcommon.entity.User;
import lombok.Data;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

@Data
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserVo extends User {

    @JsonProperty("type")
    private String typeStr;
    @JsonProperty("gender")
    private String genderStr;

    public UserVo(User user){
        super();
        BeanUtils.copyProperties(user, this);
    }

}
